package com.ruoyi.quality.service;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.quality.domain.bo.QualityClassificationDataBo;
import com.ruoyi.quality.domain.bo.QualityUserClassificationBo;
import com.ruoyi.quality.domain.vo.QualityUserClassificationVo;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;

/**
 * 用户分级Service接口
 *
 * @author ruoyi
 * @date 2023-12-18
 */
public interface IQualityUserClassificationService {

    /**
     * 查询用户分级
     */
    QualityUserClassificationVo queryById(Long id);

    QualityUserClassificationVo queryByBo(QualityUserClassificationBo bo);

    /**
     * 查询用户分级
     */
    List<QualityUserClassificationVo> queryByIds(Collection<Long> ids);

    /**
     * 查询用户分级列表
     */
    TableDataInfo<QualityUserClassificationVo> queryPageList(QualityUserClassificationBo bo, PageQuery pageQuery);

    /**
     * 查询用户分级列表
     */
    List<QualityUserClassificationVo> queryList(QualityUserClassificationBo bo);

    /**
     * 新增用户分级
     */
    Boolean insertByBo(QualityUserClassificationBo bo);

    /**
     * 修改用户分级
     */
    Boolean updateByBo(QualityUserClassificationBo bo);

    Boolean updatePracticeByDataBo(QualityClassificationDataBo bo);

    BigDecimal getTotalByBo(QualityUserClassificationBo bo);

    Boolean deleteTotalByDataIds(Collection<Long> ids);

    String updateClassificationByTotal(BigDecimal total,String flag);

    /**
     * 校验并批量删除用户分级信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
